<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="shortcut icon" type="image/x-icon" href="/img/gm_favicon.png" /> 


    <% self.seen_css = set() %>
	<% self.seen_js = set() %>
    <title>${self.title(c.title)}</title>
    ${self.css()}
    ${self.js()}
</head>
    <body>
	    ${self.heading()}
		${next.body()}
   
        <div id="ft">
            ${self.footer()}
        </div>
    </body>
</html>

<%def name="title(arg)">${arg or 'SMSCG GridMonitor (an AAA/SWITCH) project'}</%def>

<%def name="css_link(path,media='')">
	## making sure each css only gets included once 
	% if path not in self.seen_css:
	    <link rel="stylesheet" type="text/css" href="${path|h}" media="${media}" />\
	% endif
	<% self.seen_css.add(path) %>\
</%def>

<%def name="js_link(path)">\
        ## making sure each js only gets included once
        % if path not in self.seen_js:
            <script type="text/javascript" src="${path}"></script>\
        % endif
        <% self.seen_js.add(path) %>\
</%def>\

<%def name="css()">	
   ${css_link('/css/yui/build/reset-fonts-grids/reset-fonts-grids.css','screen')}
   ${css_link('/css/yui/build/base/base-min.css','screen')}
   ${css_link('/css/monitor.css','screen')}
</%def>

<%def name="js()">
</%def>

<%def name="footer()">
<hr style="border:2px; color: #9E9E9E; background-color: #9E9E9E; height: 1px;width:40px;" align="left"/>
<p align='left' style="font-style:oblique; font-size:small;">GridMonitor v. 0.9.2-rc1 </p>
</%def>

<%def name="heading()"><h1>${c.heading or ''}</h1><a name="top"></a></%def>
